package mastercard.assets.jpa;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the tbl_flujo database table.
 * 
 */
@Entity
@Table(name="tbl_flujo")
public class TblFlujo implements Serializable {
	private static final long serialVersionUID = 1L;
	private int cveFlujo;
	private String descripcion;
	private Timestamp fechaAlta;
	private String nombre;
	private byte status;
	private byte tipo;
	private List<TblAsset> tblAssets1;
	private List<TblAsset> tblAssets2;
	private List<TblTarea> tblTareas;
	private List<TblPreimplementacion> tblPreimplementacions;

    public TblFlujo() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="cve_flujo", unique=true, nullable=false)
	public int getCveFlujo() {
		return this.cveFlujo;
	}

	public void setCveFlujo(int cveFlujo) {
		this.cveFlujo = cveFlujo;
	}


	@Column(nullable=false, length=2048)
	public String getDescripcion() {
		return this.descripcion;
	}

	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}


	@Column(name="fecha_alta", nullable=false)
	public Timestamp getFechaAlta() {
		return this.fechaAlta;
	}

	public void setFechaAlta(Timestamp fechaAlta) {
		this.fechaAlta = fechaAlta;
	}


	@Column(nullable=false, length=255)
	public String getNombre() {
		return this.nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}


	@Column(nullable=false)
	public byte getStatus() {
		return this.status;
	}

	public void setStatus(byte status) {
		this.status = status;
	}


	@Column(nullable=false)
	public byte getTipo() {
		return this.tipo;
	}

	public void setTipo(byte tipo) {
		this.tipo = tipo;
	}


	//bi-directional many-to-one association to TblAsset
	@OneToMany(mappedBy="tblFlujo1")
	public List<TblAsset> getTblAssets1() {
		return this.tblAssets1;
	}

	public void setTblAssets1(List<TblAsset> tblAssets1) {
		this.tblAssets1 = tblAssets1;
	}
	

	//bi-directional many-to-one association to TblAsset
	@OneToMany(mappedBy="tblFlujo2")
	public List<TblAsset> getTblAssets2() {
		return this.tblAssets2;
	}

	public void setTblAssets2(List<TblAsset> tblAssets2) {
		this.tblAssets2 = tblAssets2;
	}
	

	//bi-directional many-to-one association to TblTarea
	@OneToMany(mappedBy="tblFlujo")
	public List<TblTarea> getTblTareas() {
		return this.tblTareas;
	}

	public void setTblTareas(List<TblTarea> tblTareas) {
		this.tblTareas = tblTareas;
	}
	

	//bi-directional many-to-one association to TblPreimplementacion
	@OneToMany(mappedBy="tblFlujo")
	public List<TblPreimplementacion> getTblPreimplementacions() {
		return this.tblPreimplementacions;
	}

	public void setTblPreimplementacions(List<TblPreimplementacion> tblPreimplementacions) {
		this.tblPreimplementacions = tblPreimplementacions;
	}
	
}